package com.turing.mission.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

@FeignClient("system-server")
public interface DictionaryService {

    @GetMapping("/system/dic/getDic")
    Result getDic(@RequestParam("dicId") String dicId, @RequestParam("dicName") String dicName);

    @PatchMapping("/system/dic/editSave")
    Result editSave(@RequestBody JSONObject jsonObject);
}
